<!DOCTYPE html>
<html lang="zh-CN">
<style>
#tr {
    height: 30px;
}

</style>

<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/process/processrpt" method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="processrpt"/>
            <label>扩散批号：</label>
            <input name="SUBSTRATE_ID1" value="${SUBSTRATE_ID1}" size="18"/>
            <label>组装批号：</label>
            <input name="lotId" value="${lotId}"/>&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <button type="button" class="btn-blue"
                    onclick="javascript:bjuiExportExl('#pagerForm', '${request.getContextPath()}/process/exportExcel')"
                    data-icon="file-excel-o" title="导出Excel">导出Excel文件</button>&nbsp;
        </div>
    </form>
</div>
<g:if test="${processlotlist.size() > 0}">
    <div class="bjui-pageContent">
        <br>
        <h4 align="center">批次加工历史</h4><br>

        <div>

            <table text-align="center" data-toggle="tablefixed" data-width="100%" data-nowrap="true">
                <tr>
                    <th width="95">批号</th>
                    <td width="95">${processlotlist.LOT_ID[0]}</td>
                    <th width="95">产品</th>
                    <td width="95">${processlotlist.PART_NAME[0]}</td>
                    <th width="95">工艺</th>
                    <td width="95">${processlotlist.PROCESS_NAME[0]}</td>
                </tr>
                <tr>
                    <th width="95">工单</th>
                    <td width="95">${processlotlist.WO_ID[0]}</td>
                    <th width="95">开始数量</th>
                    <td width="95">${processlotlist.START_MAIN_QTY[0]}</td>
                    <th width="95">开始时间</th>
                    <td width="95">${processlotlist.START_TIME[0]}</td>
                </tr>

            </table>

        </div>
        <br/>

        <div>
            <g:if test="${processlist.size() > 0}">
                <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
                    <thead>
                    <tr id="tr">
                        <th width="45">NO.</th>
                        <th width="75">工步名称</th>
                        <th width="312">工步描述</th>
                        <th width="65">进片数量</th>
                        <th width="65">出片数量</th>
                        <th width="162">进片时间</th>
                        <th width="162">出片时间</th>
                        <th width="105">作业时间(分钟)</th>
                        <th width="75">进片操作人</th>
                        <th width="75">出片操作人</th>
                        <th width="75">设备号</th>
                        <th width="75">周记</th>

                    </tr>
                    </thead>
                    <tbody>
                    <g:each in="${processlist}" status="i" var="tableInstance">
                        <tr>
                            <td >${i + 1}</td>
                            <td text-align="center">${tableInstance.STEP_NAME}</td>
                            <td >${tableInstance.STEP_DESC}</td>
                            <td >${tableInstance.TRACK_IN_QTY}</td>
                            <td >${tableInstance.TRACK_OUT_QTY}</td>
                            <td >${tableInstance.TRACK_IN_TIME}</td>
                            <td >${tableInstance.TRACK_OUT_TIME}</td>
                            <td >${tableInstance.DUARTION}</td>
                            <td >${tableInstance.TRACK_IN_USER}</td>
                            <td >${tableInstance.TRACK_OUT_USER}</td>
                            <td >${tableInstance.EQUIPMENT_ID}</td>
                            <td >${tableInstance.Reserved4}</td>
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </g:if>
            <g:else>
                <g:render template="../template/emptyPanel"/>
            </g:else>
        </div>
    </div>
</g:if>
</html>